package com.wjm.blog.system.fallback;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wjm.blog.common.base.response.Result;
import com.wjm.blog.system.api.SysDictionaryApi;
import com.wjm.blog.system.vo.request.SysDictionaryQueryVo;
import com.wjm.blog.system.vo.request.SysDictionarySaveVo;
import com.wjm.blog.system.vo.response.SysDictionaryDetailVo;
import com.wjm.blog.system.vo.response.SysDictionaryListVo;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Component;

import javax.validation.Valid;
import java.util.List;

/**
 * 数据字典信息表Fallback
 *
 * @author wjm
 * @version 1.0
 * @date 2023-10-18T14:34:39.067
 */
@Log4j2
@Component
public class SysDictionaryFallback implements SysDictionaryApi {

    @Override
    public Result<IPage<SysDictionaryListVo>> page(SysDictionaryQueryVo queryVo) throws Exception {
        log.info("[SysDictionaryApi]的page(SysDictionaryQueryVo queryVo)发生异常，请求参数：{}", queryVo);
        return null;
    }

    @Override
    public Result<List<SysDictionaryListVo>> list(SysDictionaryQueryVo queryVo) throws Exception {
        log.info("[SysDictionaryApi]的list(SysDictionaryQueryVo queryVo)发生异常，请求参数：{}", queryVo);
        return null;
    }

    @Override
    public Result<SysDictionaryDetailVo> get(Long id) throws Exception {
        log.info("[SysDictionaryApi]的get(Long id)发生异常，请求参数：{}", id);
        return null;
    }

    @Override
    public Result insert(@Valid SysDictionarySaveVo saveVo) throws Exception {
        log.info("[SysDictionaryApi]的insert(SysDictionarySaveVo saveVo)发生异常，请求参数：{}", saveVo);
        return null;
    }

    @Override
    public Result update(Long id, @Valid SysDictionarySaveVo saveVo) throws Exception {
        log.info("[SysDictionaryApi]的update(Long id, SysDictionarySaveVo saveVo)发生异常，请求参数：{},{}", id, saveVo);
        return null;
    }

    @Override
    public Result invalid(List<Long> ids) throws Exception {
        log.info("[SysDictionaryApi]的invalid(List<Long> ids)发生异常，请求参数：{}", ids);
        return null;
    }
}
